# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-eth-hash
_pkgname=eth-hash
pkgver=0.7.1
pkgrel=1
pkgdesc='The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3.'
url='https://pypi.org/project/eth-hash/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'pandoc')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('6f33b317a514bc965d3f981af14329fc785d3536e033550a1966530243bcc25176326b949ead2de19df0a4732298ca96a4201e34f649b986b8c0ec04a7e76d3d')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

